scrolledwindow: fix left/right thinko for scrollbar style classes
authorCosimo Cecchi <cosimoc@gnome.org>
Thu, 3 Mar 2016 00:08:19 +0000 (16:08 -0800)
committerCosimo Cecchi <cosimoc@gnome.org>
Thu, 3 Mar 2016 00:08:19 +0000 (16:08 -0800)
"left" and "right" were inverted, preumably because the position type
parameter refers to the scrolled window position, and not the scrollbar
itself.

gtk/gtkscrolledwindow.c

index 0df1a6213458adb81bed19f504af5e71bf5638cc..3b62519644da4dc58d9936fc17ee2f39db7d4f59 100644 (file)
@@ -477,13 +477,13 @@ update_scrollbar_positions (GtkScrolledWindow *scrolled_window)
           (priv->window_placement == GTK_CORNER_TOP_LEFT ||
            priv->window_placement == GTK_CORNER_BOTTOM_LEFT)))
         {
-          gtk_style_context_add_class (context, GTK_STYLE_CLASS_LEFT);
-          gtk_style_context_remove_class (context, GTK_STYLE_CLASS_RIGHT);
+          gtk_style_context_add_class (context, GTK_STYLE_CLASS_RIGHT);
+          gtk_style_context_remove_class (context, GTK_STYLE_CLASS_LEFT);
         }
       else
         {
-          gtk_style_context_remove_class (context, GTK_STYLE_CLASS_LEFT);
-          gtk_style_context_add_class (context, GTK_STYLE_CLASS_RIGHT);
+          gtk_style_context_remove_class (context, GTK_STYLE_CLASS_RIGHT);
+          gtk_style_context_add_class (context, GTK_STYLE_CLASS_LEFT);
         }
     }
 }